/*
* Copyright 2010 Competentum group
*
* Licensed under the GNU General Public License, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*      http://www.gnu.org/licenses/gpl.html
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.competentum.vos
{
	

	/**
	 * VO for describing separate Employee 
	 * @author OsipovS
	 * 
	 */	
	public class EmployeeVO extends AbstractItemVO
	{
		
		public static const TYPE:String = "employee";
		
		public static const FORMAT:String = "employee";
		
		public static const DEFAULT_HOURS:Number = 30;
		
		public static const GROUPING_ATTRIBUTE_FIELD:String = "team";
		
		/**
		 * team name string value 
		 */
		[Bindable]
		private var _team:String = "team";

		public function set team(value:String):void {
			_team = value;
		}
		[Bindable]
		public function get team():String {
			return _team;
		}
		
		function EmployeeVO() {
			super();
			_hours = DEFAULT_HOURS;
		}
		
		/**
		 * @inheritDoc 
		 */	
		override public function exportToXML():XML {
			var xml:XML =
				<employee>
				</employee>
			xml.@name = name;		
			xml.@attestation = hours;
			xml.@team = team;
			xml.@uid = uid;
			return xml; 
		}
	}
}